package org.wukongcrm.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
    * 附件表
    */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "`file`")
public class File implements Serializable {
    @TableId(value = "file_no", type = IdType.INPUT)
    private Integer fileNo;

    /**
     * 附件名称
     */
    @TableField(value = "file_name")
    private String fileName;

    /**
     * 附件大小
     */
    @TableField(value = "`size`")
    private Integer size;

    /**
     * 创建人
     */
    @TableField(value = "create_user_id")
    private Integer createUserId;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 路径
     */
    @TableField(value = "`path`")
    private String path;

    /**
     * 文件类型：file img
     */
    @TableField(value = "file_type")
    private String fileType;

    /**
     * 文件来源： 0 默认 1 admin 2 crm 3 进销存
     */
    @TableField(value = "`source`")
    private Integer source;

    private static final long serialVersionUID = 1L;
}